package com.chilly.lambda.scope;

import com.chilly.lambda.Converter;

/**
 * lambda scope 作用域
 * Created by Chilly Cui on 2020/11/19.
 */
public class Main {
    public static void main(String[] args) {
        final int num = 1;
//        int num = 1;
        Converter<Integer, String> converter = (from) -> String.valueOf(from + num);//局部变量
        converter.convert(2); //3
//        num=3;
    }
}
